package com.meilai.project.controller.web.adMake.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.meilai.project.core.bean.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 制作单-配送
 * </p>
 *
 * @author 张驰
 * @since 2022-08-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("bill_ad_make_deliver")
@ApiModel(value="BillAdMakeDeliver对象", description="制作单-配送")
public class BillAdMakeDeliver extends SuperEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "制作表id，对应bill_ad_make的id")
    private Long bill_ad_make_id;

    @ApiModelProperty(value = "供应商id，对应supplier的id")
    private Long supplier_id;

    @ApiModelProperty(value = "是否为小样配送，0:否，1:是")
    private Integer sample;

    @ApiModelProperty(value = "配送方式，1：供应商配送，2：自提，3：跑腿")
    private Integer type;

    @ApiModelProperty(value = "跑腿平台id，对应dictionary的id")
    private Long run_id;

    @ApiModelProperty(value = "跑腿费用")
    private BigDecimal run_cost;

    @ApiModelProperty(value = "配送地址")
    private String address;

    @ApiModelProperty(value = "期望送达时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime hope_time;

    @ApiModelProperty(value = "备注")
    private String memo;


    public static final String BILL_AD_MAKE_ID = "bill_ad_make_id";

    public static final String SUPPLIER_ID = "supplier_id";

    public static final String SAMPLE = "sample";

    public static final String TYPE = "type";

    public static final String RUN_ID = "run_id";

    public static final String RUN_COST = "run_cost";

    public static final String ADDRESS = "address";

    public static final String HOPE_TIME = "hope_time";

    public static final String MEMO = "memo";

}
